package org.nstack.header.network.l2;

import org.nstack.header.message.APIEvent;
import org.nstack.header.rest.RestResponse;



@RestResponse(allTo = "inventory")
public class APIDetachL2NetworkFromClusterEvent extends APIEvent {

    private L2NetworkInventory inventory;

    public L2NetworkInventory getInventory() {
        return inventory;
    }

    public void setInventory(L2NetworkInventory inventory) {
        this.inventory = inventory;
    }

    public APIDetachL2NetworkFromClusterEvent(String apiId) {
        super(apiId);
    }

    public APIDetachL2NetworkFromClusterEvent() {
        super(null);
    }

 
    public static APIDetachL2NetworkFromClusterEvent __example__() {
        APIDetachL2NetworkFromClusterEvent event = new APIDetachL2NetworkFromClusterEvent();
        L2VlanNetworkInventory net = new L2VlanNetworkInventory();

        net.setName("Test-Net");
        net.setVlan(10);
        net.setDescription("Test");
        net.setZoneUuid(uuid());
        net.setPhysicalInterface("eth0");
        net.setType("L2VlanNetwork");

        event.setInventory(net);
        return event;
    }

}
